package com.management.controller.form;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class AddAccountForm {
    @NotNull
    private String accountName;
    @NotNull
    private String accountSex;
    @NotNull
    @Pattern(regexp = "^1[3456789]\\d{9}$",message = "手机号格式不正确")
    private String accountTel;
    @NotNull
    @Pattern(regexp = "[1-9]\\d{4,10}@qq\\.com",message = "邮箱格式不正确")
    private String accountEmail;
    @NotNull
    private String accountLoginid;
}
